/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.landmark;

import java.awt.BorderLayout;
import java.io.File;
import javax.swing.JPanel;

/**
 *
 * @author computer
 */
public class MainPanel extends JPanel {

    /**
     * Creates new form MainPanel
     */
    public MainPanel() {
        initComponents();

        HelperBean helperBean = new HelperBean();
        helperBean.setComponent(this.txtAreaOutput);
        helperBean.setDataPanel(this);
        helperBean.setButton(this.btnTerminate);
        helperBean.setToggleButton(this.btnTerminate);

        Util.setHelperBean(helperBean);

        this.btnTerminate.setEnabled(false);
        Util.createDirectory("./outputs");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        panelTxtArea = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtAreaOutput = new javax.swing.JTextArea();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        btnTerminate = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        btnGenerateSKUId = new javax.swing.JButton();
        btnRenFiles = new javax.swing.JButton();
        btnRenFilesColor = new javax.swing.JButton();
        btnGetImages = new javax.swing.JButton();
        btnRenameVFImg = new javax.swing.JButton();
        btnRemoveDupRows = new javax.swing.JButton();
        btnBRU = new javax.swing.JButton();
        btnTagging = new javax.swing.JButton();
        btnGenerateSKULength = new javax.swing.JButton();
        btnRenameImageFromFile = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        btnLandau = new javax.swing.JButton();
        btnBenchmade = new javax.swing.JButton();
        btnHolsters = new javax.swing.JButton();
        btnBlauer = new javax.swing.JButton();
        btnFenix = new javax.swing.JButton();
        btnASP = new javax.swing.JButton();
        btnWolverine = new javax.swing.JButton();
        btnTag = new javax.swing.JButton();
        btnBodek = new javax.swing.JButton();
        btnMoteng = new javax.swing.JButton();
        btnSandPiper = new javax.swing.JButton();
        btnBarco = new javax.swing.JButton();
        btnRedkap = new javax.swing.JButton();
        btnChefWorks = new javax.swing.JButton();
        btnERBSafety = new javax.swing.JButton();
        btnChefDesigns = new javax.swing.JButton();
        btnforensicsource = new javax.swing.JButton();
        btnSafariland = new javax.swing.JButton();

        setBackground(new java.awt.Color(0, 113, 187));
        setPreferredSize(new java.awt.Dimension(800, 600));

        jPanel1.setBackground(new java.awt.Color(0, 113, 187));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.setAutoscrolls(true);

        panelTxtArea.setBackground(new java.awt.Color(0, 113, 187));
        panelTxtArea.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtAreaOutput.setBackground(new java.awt.Color(51, 51, 51));
        txtAreaOutput.setColumns(20);
        txtAreaOutput.setEditable(false);
        txtAreaOutput.setFont(new java.awt.Font("Cambria", 0, 10)); // NOI18N
        txtAreaOutput.setForeground(new java.awt.Color(255, 255, 51));
        txtAreaOutput.setLineWrap(true);
        txtAreaOutput.setRows(5);
        txtAreaOutput.setWrapStyleWord(true);
        txtAreaOutput.setName("txtArea");
        jScrollPane1.setViewportView(txtAreaOutput);

        javax.swing.GroupLayout panelTxtAreaLayout = new javax.swing.GroupLayout(panelTxtArea);
        panelTxtArea.setLayout(panelTxtAreaLayout);
        panelTxtAreaLayout.setHorizontalGroup(
            panelTxtAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTxtAreaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
        );
        panelTxtAreaLayout.setVerticalGroup(
            panelTxtAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTxtAreaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel2.setBackground(new java.awt.Color(0, 113, 187));
        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel1.setFont(new java.awt.Font("Cambria", 1, 12)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 51));
        jLabel1.setText("Catalogs");

        jLabel3.setFont(new java.awt.Font("Cambria", 1, 12)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 51));
        jLabel3.setText("General");

        btnTerminate.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnTerminate.setForeground(new java.awt.Color(255, 0, 0));
        btnTerminate.setText("Terminate Current Process");
        btnTerminate.setToolTipText("Terminate Current Process");
        btnTerminate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTerminateActionPerformed(evt);
            }
        });

        jPanel3.setBackground(new java.awt.Color(0, 113, 187));
        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnGenerateSKUId.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnGenerateSKUId.setText("Generate SKU");
        btnGenerateSKUId.setToolTipText("Generate SKU id for the input file given");
        btnGenerateSKUId.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGenerateSKUIdActionPerformed(evt);
            }
        });

        btnRenFiles.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRenFiles.setText("Rename Files");
        btnRenFiles.setToolTipText("Rename all the files with the spcified constraints");
        btnRenFiles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRenFilesActionPerformed(evt);
            }
        });

        btnRenFilesColor.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRenFilesColor.setText("Rename Files W/Color ");
        btnRenFilesColor.setToolTipText("Rename all the files which mathc the color in the color code file");
        btnRenFilesColor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRenFilesColorActionPerformed(evt);
            }
        });

        btnGetImages.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnGetImages.setText("Images from file URLs ");
        btnGetImages.setToolTipText("Gets the images from the paths given in the file specified");
        btnGetImages.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGetImagesActionPerformed(evt);
            }
        });

        btnRenameVFImg.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRenameVFImg.setText("Rename VF Images");
        btnRenameVFImg.setToolTipText("Rename all the images in the VF imagewear folder");
        btnRenameVFImg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRenameVFImgActionPerformed(evt);
            }
        });

        btnRemoveDupRows.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRemoveDupRows.setText("Remove Dup SKU Rows");
        btnRemoveDupRows.setToolTipText("Removes duplicates from the file");
        btnRemoveDupRows.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRemoveDupRowsActionPerformed(evt);
            }
        });

        btnBRU.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnBRU.setText("Bulk Rename Utility");
        btnBRU.setToolTipText("External Utility that renames files");
        btnBRU.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBRUActionPerformed(evt);
            }
        });

        btnTagging.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnTagging.setText("Tagging");
        btnTagging.setToolTipText("Tagging");
        btnTagging.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTaggingActionPerformed(evt);
            }
        });

        btnGenerateSKULength.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnGenerateSKULength.setText("SKU Length = 50 ");
        btnGenerateSKULength.setToolTipText("Make SKU Id to be of fixed length as 50");
        btnGenerateSKULength.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGenerateSKULengthActionPerformed(evt);
            }
        });

        btnRenameImageFromFile.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRenameImageFromFile.setText("RenameImageFromFile");
        btnRenameImageFromFile.setToolTipText("RenameImageFromFile");
        btnRenameImageFromFile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRenameImageFromFileActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnRenFilesColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnGetImages, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnRenFiles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnGenerateSKUId, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnRenameVFImg, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnRemoveDupRows, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnBRU, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnTagging, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnGenerateSKULength, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnRenameImageFromFile, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnGenerateSKUId)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRenFiles)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRenFilesColor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnGetImages)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRenameVFImg)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRemoveDupRows)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBRU)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnGenerateSKULength)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnTagging)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnRenameImageFromFile)
                .addContainerGap())
        );

        jPanel4.setBackground(new java.awt.Color(0, 113, 187));
        jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnLandau.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnLandau.setText("Landau");
        btnLandau.setToolTipText("Landau");
        btnLandau.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLandauActionPerformed(evt);
            }
        });

        btnBenchmade.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnBenchmade.setText("Benchmade");
        btnBenchmade.setToolTipText("Benchmade");
        btnBenchmade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBenchmadeActionPerformed(evt);
            }
        });

        btnHolsters.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnHolsters.setText("HolstersBianchi");
        btnHolsters.setToolTipText("HolstersBianchi");
        btnHolsters.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHolstersActionPerformed(evt);
            }
        });

        btnBlauer.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnBlauer.setText("Baluer");
        btnBlauer.setToolTipText("Baluer");
        btnBlauer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBlauerActionPerformed(evt);
            }
        });

        btnFenix.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnFenix.setText("Fenix");
        btnFenix.setToolTipText("Fenix");
        btnFenix.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFenixActionPerformed(evt);
            }
        });

        btnASP.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnASP.setText("ASP");
        btnASP.setToolTipText("ASP");
        btnASP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnASPActionPerformed(evt);
            }
        });

        btnWolverine.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnWolverine.setText("Wolverine");
        btnWolverine.setToolTipText("Wolverine");
        btnWolverine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnWolverineActionPerformed(evt);
            }
        });

        btnTag.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnTag.setText("TAG");
        btnTag.setToolTipText("Tactical Assault Gear");
        btnTag.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTagActionPerformed(evt);
            }
        });

        btnBodek.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnBodek.setText("Bodek");
        btnBodek.setToolTipText("Bodek");
        btnBodek.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBodekActionPerformed(evt);
            }
        });

        btnMoteng.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnMoteng.setText("Moteng");
        btnMoteng.setToolTipText("Moteng");
        btnMoteng.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMotengActionPerformed(evt);
            }
        });

        btnSandPiper.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnSandPiper.setText("SandPiper");
        btnSandPiper.setToolTipText("sand Piper");
        btnSandPiper.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSandPiperActionPerformed(evt);
            }
        });

        btnBarco.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnBarco.setText("Barco");
        btnBarco.setToolTipText("Barco");
        btnBarco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBarcoActionPerformed(evt);
            }
        });

        btnRedkap.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnRedkap.setText("RedKap");
        btnRedkap.setToolTipText("RedKap");
        btnRedkap.setActionCommand("Red");
        btnRedkap.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRedkapActionPerformed(evt);
            }
        });

        btnChefWorks.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnChefWorks.setText("ChefWorks");
        btnChefWorks.setToolTipText("ChefWorks");
        btnChefWorks.setActionCommand("Red");
        btnChefWorks.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnChefWorksActionPerformed(evt);
            }
        });

        btnERBSafety.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnERBSafety.setText("ERBSafety");
        btnERBSafety.setToolTipText("ERBSafety");
        btnERBSafety.setActionCommand("Red");
        btnERBSafety.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnERBSafetyActionPerformed(evt);
            }
        });

        btnChefDesigns.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnChefDesigns.setText("ChefDesigns");
        btnChefDesigns.setToolTipText("ChefDesigns");
        btnChefDesigns.setActionCommand("Red");
        btnChefDesigns.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnChefDesignsActionPerformed(evt);
            }
        });

        btnforensicsource.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnforensicsource.setText("ForensicSource");
        btnforensicsource.setToolTipText("ForensicSource");
        btnforensicsource.setActionCommand("Red");
        btnforensicsource.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnforensicsourceActionPerformed(evt);
            }
        });

        btnSafariland.setFont(new java.awt.Font("Cambria", 0, 12)); // NOI18N
        btnSafariland.setText("Safariland");
        btnSafariland.setToolTipText("Safariland");
        btnSafariland.setActionCommand("Red");
        btnSafariland.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSafarilandActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnBenchmade, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnBodek, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnTag, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnMoteng, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnLandau, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnHolsters, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnSandPiper, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnASP, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap(11, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(btnBlauer, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnWolverine, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnBarco, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnFenix, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnRedkap, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnChefWorks, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnERBSafety, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnChefDesigns, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(btnforensicsource, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnSafariland, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnBenchmade)
                    .addComponent(btnBodek)
                    .addComponent(btnLandau)
                    .addComponent(btnHolsters))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnTag)
                    .addComponent(btnMoteng)
                    .addComponent(btnSandPiper)
                    .addComponent(btnASP))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnBlauer)
                    .addComponent(btnWolverine)
                    .addComponent(btnBarco)
                    .addComponent(btnFenix))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnRedkap)
                    .addComponent(btnChefWorks)
                    .addComponent(btnERBSafety)
                    .addComponent(btnChefDesigns))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnforensicsource)
                    .addComponent(btnSafariland))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnTerminate, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(104, 104, 104))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnTerminate))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panelTxtArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(panelTxtArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnGenerateSKUIdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGenerateSKUIdActionPerformed
        Util.setComponents(GenerateSKUGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnGenerateSKUIdActionPerformed

    private void btnHolstersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHolstersActionPerformed
        setPanelComponents();
        new HolstersBianchi().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnHolstersActionPerformed

    private void btnRenFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRenFilesActionPerformed
        Util.setComponents(RenameDirFileGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnRenFilesActionPerformed

    private void btnBlauerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBlauerActionPerformed
        // TODO add your handling code here:
        //Util.setComponents(Util.getHelperBean().getComponent().getClass(), panelTxtArea);
        setPanelComponents();
        new Blauer().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnBlauerActionPerformed

    private void btnTerminateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTerminateActionPerformed
        // TODO add your handling code here:
        Util.getHelperBean().setTerminateCurrentProcess(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnTerminateActionPerformed

    private void btnFenixActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFenixActionPerformed
        // TODO add your handling code here:
        setPanelComponents();
        new FenixCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnFenixActionPerformed

    private void btnBodekActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBodekActionPerformed
        // TODO add your handling code here:
        setPanelComponents();
        new BodekCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnBodekActionPerformed

    private void btnBenchmadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBenchmadeActionPerformed
        // TODO add your handling code here:
        setPanelComponents();
        new BenchMade().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnBenchmadeActionPerformed

    private void btnTagActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTagActionPerformed
        setPanelComponents();
        new TagCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnTagActionPerformed

    private void btnWolverineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnWolverineActionPerformed
        setPanelComponents();
        new WolverineCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnWolverineActionPerformed

    private void btnASPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnASPActionPerformed
        setPanelComponents();
        new ASPCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnASPActionPerformed

    private void btnRenFilesColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRenFilesColorActionPerformed
        Util.setComponents(RenameDirFileWithColorCodesGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnRenFilesColorActionPerformed

    private void btnLandauActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLandauActionPerformed
        setPanelComponents();
        new LandauCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnLandauActionPerformed

    private void btnMotengActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMotengActionPerformed
        setPanelComponents();
        new MotengCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnMotengActionPerformed

    private void btnGetImagesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetImagesActionPerformed
        Util.setComponents(ImagesFromFileGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnGetImagesActionPerformed

    private void btnRenameVFImgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRenameVFImgActionPerformed
        Util.setComponents(RenameVFImageWearImageFilesGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnRenameVFImgActionPerformed

    private void btnSandPiperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSandPiperActionPerformed
        setPanelComponents();
        new SandPiperCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnSandPiperActionPerformed

    private void btnRemoveDupRowsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveDupRowsActionPerformed
        Util.setComponents(RemoveDuplicatesSKURowsGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnRemoveDupRowsActionPerformed

    private void btnBarcoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBarcoActionPerformed
        setPanelComponents();
        new BarcoCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnBarcoActionPerformed

    private void btnBRUActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBRUActionPerformed
        try {
            File file = new File(".\\.\\BulkRenameUtility.exe");
            file.createNewFile();
            System.out.println(file.getAbsoluteFile());
            Runtime.getRuntime().load(file.getAbsolutePath());
            Process process = Runtime.getRuntime().exec(".\\.\\BulkRenameUtility.exe");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }//GEN-LAST:event_btnBRUActionPerformed

    private void btnRedkapActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRedkapActionPerformed
        setPanelComponents();
        new RedKapCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnRedkapActionPerformed

    private void btnChefWorksActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChefWorksActionPerformed
        setPanelComponents();
        new ChefWorksCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnChefWorksActionPerformed

    private void btnTaggingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTaggingActionPerformed
        Util.setComponents(TaggingGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnTaggingActionPerformed

    private void btnERBSafetyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnERBSafetyActionPerformed
        setPanelComponents();
        new ERBSafetyCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnERBSafetyActionPerformed

    private void btnChefDesignsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChefDesignsActionPerformed
        setPanelComponents();
        new ChefDesignCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnChefDesignsActionPerformed

    private void btnGenerateSKULengthActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGenerateSKULengthActionPerformed
        Util.setComponents(SKUIDFixedLengthGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnGenerateSKULengthActionPerformed

    private void btnforensicsourceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnforensicsourceActionPerformed
        // TODO add your setPanelComponents();
        new ForensicSource().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnforensicsourceActionPerformed

    private void btnRenameImageFromFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRenameImageFromFileActionPerformed
        Util.setComponents(RenameImageNamesGUI.class, panelTxtArea);
    }//GEN-LAST:event_btnRenameImageFromFileActionPerformed

    private void btnSafarilandActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSafarilandActionPerformed
        setPanelComponents();
        new SafarilandCat().execute();
        this.btnTerminate.setEnabled(true);
        toggleTerminateButton();
    }//GEN-LAST:event_btnSafarilandActionPerformed

    private void setPanelComponents() {
        panelTxtArea.removeAll();
        panelTxtArea.setLayout(new BorderLayout());
        jScrollPane1.setViewportView(Util.getHelperBean().getComponent());
        panelTxtArea.add(jScrollPane1, BorderLayout.CENTER);
        //panelTxtArea.add(Util.getHelperBean().getComponent(), BorderLayout.CENTER);
        panelTxtArea.setVisible(true);
        panelTxtArea.paintImmediately(panelTxtArea.getVisibleRect());
    }

    private void toggleTerminateButton() {
        if (Util.getHelperBean().isTerminateCurrentProcess()) {
            this.btnTerminate.setEnabled(false);
        } else {
            this.btnTerminate.setEnabled(true);
        }
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnASP;
    private javax.swing.JButton btnBRU;
    private javax.swing.JButton btnBarco;
    private javax.swing.JButton btnBenchmade;
    private javax.swing.JButton btnBlauer;
    private javax.swing.JButton btnBodek;
    private javax.swing.JButton btnChefDesigns;
    private javax.swing.JButton btnChefWorks;
    private javax.swing.JButton btnERBSafety;
    private javax.swing.JButton btnFenix;
    private javax.swing.JButton btnGenerateSKUId;
    private javax.swing.JButton btnGenerateSKULength;
    private javax.swing.JButton btnGetImages;
    private javax.swing.JButton btnHolsters;
    private javax.swing.JButton btnLandau;
    private javax.swing.JButton btnMoteng;
    private javax.swing.JButton btnRedkap;
    private javax.swing.JButton btnRemoveDupRows;
    private javax.swing.JButton btnRenFiles;
    private javax.swing.JButton btnRenFilesColor;
    private javax.swing.JButton btnRenameImageFromFile;
    private javax.swing.JButton btnRenameVFImg;
    private javax.swing.JButton btnSafariland;
    private javax.swing.JButton btnSandPiper;
    private javax.swing.JButton btnTag;
    private javax.swing.JButton btnTagging;
    private javax.swing.JButton btnTerminate;
    private javax.swing.JButton btnWolverine;
    private javax.swing.JButton btnforensicsource;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel panelTxtArea;
    public javax.swing.JTextArea txtAreaOutput;
    // End of variables declaration//GEN-END:variables
}
